package com.oo.abstractAndInterface_6.programer;

/**
 * Person--${description}
 *
 * @author: Jovi
 * @createTime: 2017-04-13 13:44
 **/
public abstract class Person {

    private String name;

    private String sex;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Person(String name, String sex) {
        this.name = name;
        this.sex = sex;
    }

    public void intro() {

        System.out.println("My name is"+this.getName()+"，I am");
    }
}
